<template>
  <div>
    <My-nav></My-nav>
     <input type="text">
     <input type="text">
     <button @click="loginFun">登陆</button>
  </div>
</template>

<script>
export default {
  data(){
    return{

    }
  },
  methods:{
    loginFun(){
      localStorage.setItem("token","abcdedfg");
      this.$router.replace('/home');
    }
  }

}
</script>

<style>

</style>